/*
 * $Id: IMagmonIriData.java,v 1.3 2009/07/10 19:53:00 navdeep_mahajan Exp $
 * 
 * Copyright (C) 2008 General Electric Company. All Rights Reserved.
 * 
 * This software is the confidential and proprietary information of the General
 * Electric Company (GE). You shall not disclose this software and shall use it
 * only in accordance with the terms of the license agreement you entered into
 * with GE.
 * 
 * GE MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF THE
 * SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED
 * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR
 * NON-INFRINGEMENT. GE SHALL NOT BE LIABLE FOR ANY DAMAGES SUFFERED BY LICENSEE
 * AS A RESULT OF USING, MODIFYING, OR DISTRIBUTING THIS SOFTWARE OR ITS
 * DERIVATIVES.
 */
package com.ge.healthcare.autosc.processor.magmon;

import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import com.ge.healthcare.autosc.common.exceptions.BasicException;

public interface IMagmonIriData {
	/**
	 * This is a transaction wrapper for the magMonIriData instance being passed
	 * to this method.
	 * 
	 * @param magMonIriData
	 * @throws BasicException
	 */
	@Transactional(propagation = Propagation.REQUIRES_NEW)
	public void writeToDatabase(IMagmonIriData magMonIriData)
			throws BasicException;

	/**
	 * Create StagedIriData object.
	 * 
	 * @throws BasicException
	 */
	public void writeToDatabase() throws BasicException;
}
